package com.jhh.pay.center.cfg.tablesplit;

import java.util.Map;

/**
 * @author tangxd
 * @Description: TODO
 * @date 2017/12/5
 */
public interface Strategy {
    String TABLE_NAME = "table_name";
    String SPLIT_FIELD = "split_field";
    String EXECUTE_PARAM_DECLARE = "execute_param_declare";
    String EXECUTE_PARAM_VALUES = "execute_param_values";

    /**
     * 传入一个需要分表的表名，返回一个处理后的表名
     * Strategy必须包含一个无参构造器
     *
     * @param params
     * @return
     */
    String getTable(Map<String, Object> params) throws Exception;
}
